<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="/vue2/js/vue.js"></script>
</head>
<body>

    <div id="app">

        <div>{{firstVal}}</div>

        <div v-bind:title="messageTitle"> title提示测试</div>

        <div>人员列表</div>
        <ul>
            <li v-for="entity in userList">
                {{entity.name}}
            </li>
        </ul>
       
    </div>

    <div class="memo">
        <br />v-for使用
        <br />在需要循环的标签上 使用
        <br />使用js in 方法循环当前的列表
       
    </div>

    <script>
        var vm = new Vue({
            el:"#app",
            data:{
                firstVal:"ab",
                messageTitle:"我是属性a",
                show:true,
                notshow:false,
                userList:[
                    {name:"张三"},
                    {name:"李四"}
                ]
            }
        });
    </script>
</body>
</html>